package service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import dao.CampusDao;
import pojo.Campus;
import service.CampusManager;

@Service
public class CampusManagerImpl implements CampusManager {

	@Autowired
	private CampusDao campusDao;
	
	@Transactional
	@Override
	public Campus addInfo(Campus info) {
		
		return campusDao.addInfo(info);
	}

	@Transactional
	@Override
	public void addInfoList(List<Campus> infoList) {
		campusDao.addInfoList(infoList);
		
	}

	@Transactional
	@Override
	public Campus getResult(Campus param) {
		
		return campusDao.getResult(param);
	}

	@Transactional
	@Override
	public List<Campus> getResults(String like) {
		
		return campusDao.getResults(like);
	}

	@Transactional
	@Override
	public boolean updateInfo(Campus info) {
		
		return campusDao.updateInfo(info);
	}

	@Transactional
	@Override
	public boolean deleteInfo(Campus info) {
	
		return campusDao.deleteInfo(info);
	}

}
